package com.asiainfo.lop;

import android.widget.TextView;

import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.Click;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.Extra;
import org.androidannotations.annotations.ViewById;

/**
 * 人群详细列表Activity
 * Created by wucm(wucm@asiainfo.com) on 2016/5/26 16:19.
 */
@EActivity(R.layout.message_detail_list)
public class MessageDetailListActivity extends BaseActivity {
    @ViewById(R.id.top_bar_tv)
    TextView topbarTv;

    @Extra()
    String type;

    @Click({R.id.btn_back_iv, R.id.btn_back_tv})
    void back() {
        this.finish();
    }

    @AfterViews
    void setTopBarTv() {
        switch (type) {
            case "attent": {
                topbarTv.setText("关注人群聚集预警");
                break;
            }
            case "enter": {
                topbarTv.setText("人群进入预警");
                break;
            }
            case "area": {
                topbarTv.setText("区域洞察预警");
                break;
            }
        }
    }
}
